<script setup>
import mbTree from './mb-tree.vue';
import mbOptions from './mb-options.vue';
import { onMounted, ref } from 'vue';

const props = defineProps({
  appId: [Number, String]
});

const currentData = ref(null);

const handleSelect = async (data) => {
  currentData.value = data;
};
</script>

<template>
  <div class="mb-wrap">
    <mb-tree @select="handleSelect"></mb-tree>
    <mb-options :current-data="currentData"></mb-options>
  </div>
</template>
